import React, { Suspense } from 'react';
import { Link } from 'react-router-dom';
const LazyUser = React.lazy(() => import('../routes/User'));
function NavBar() {
  return (
    <ul>
      <li><Link to="/">Home</Link></li>
      <li><Link to="/counter">Counter</Link></li>
      <Suspense>
        <LazyUser />
      </Suspense>
    </ul >
  )
}
export default NavBar;